﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Epic.TakeHome.Al {
  class Inventory {
    List<Product> _products = new List<Product>(5);

    public Inventory() {
    }

    public void add(Product p) {
      if (_products.Contains(p)) {
        return;
      }
      _products.Add(p);
    }

    public void remove(Product p) {
      _products.Remove(p);
    }

    public Product[] toArray() {
      return _products.ToArray();
    }
  }
}
